﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.FirstLogOnModel>" %>

    <% Html.ValidationSummary(true); %>
    <%= Html.HiddenFor(model => model.OldPassword)%>
    <%= Html.HiddenFor(model => model.UserName)%>
    <%= Html.HiddenFor(model => model.RememberMe)%>
    <%= Html.HiddenFor(model => model.Url) %>
    <table>
    <tr>
    <td><label><span style="color: Red;">*</span>New Password:</label></td>
    <td><%= Html.PasswordFor(model => model.NewPassword)%></td>
    <td><%= Html.ValidationMessageFor(model => model.NewPassword)%></td>
    </tr>
    <tr>
    <td><label><span style="color: Red;">*</span>Confirm New Password:</label></td>
    <td><%= Html.PasswordFor(model => model.ConfirmPassword)%></td>
    <td><span id="ConfirmPasswordMessage"><%= Html.ValidationMessageFor(model => model.ConfirmPassword)%></span></td>
    </tr>
    <tr>
    <td id="SecurityAnswerLabel"><label><span style="color: Red;">*</span>Security Question:</label></td>
    <td><%= Html.TextAreaFor(model => model.SecurityQuestion, new { rows = "5" })%></td>
    <td style="float:left"><%= Html.ValidationMessageFor(model => model.SecurityQuestion) %></td>
    </tr>
    <tr>
    <td><label><span style="color: Red;">*</span>Security Answer:</label></td>
    <td><%= Html.PasswordFor(model => model.SecurityAnswer)%></td>
    <td><%= Html.ValidationMessageFor(model => model.SecurityAnswer) %></td>
    </tr>
    <tr>
    <td><input type="submit" id="submit" value="OK"/></td>
    <td><img src="../Resources/ajax-loader.gif" id="spinner" style="display:none"/><span id="spinnermsg" style="display:none"> Saving...</span><span id="validationsummary" style="display:none"><%= Html.ValidationSummary(true)%></span></td>
    </tr>
    </table>
